Hands-On Application Development with PyCharm by Quan Nguyen
Author:Quan Nguyen
Language: eng
Format: epub
Tags: COM051360 - COMPUTERS / Programming Languages / Python, COM051000 - COMPUTERS / Programming / General, COM084000 - COMPUTERS / Desktop Applications / General
Publisher: Packt Publishing
Published: 2019-10-03T06:03:37+00:00
Debugging the code
Debugging is perhaps one of the most important features of any IDE. As it turns out, debugging JavaScript code is quite similar to debugging Python code, especially for graphical interface and navigation.
As discussed in the Debugging section in Chapter 6, Seamless Testing, Debugging, and Profiling, there are specific steps to a debugging session in PyCharm. If you want a refresher on the specifics during such a debugging session, give the Debugging section in Chapter 6, Seamless Testing, Debugging, and Profiling, a quick read-through before continuing.
With that said, to debug JavaScript code, you can do the following:
Place breakpoints at specific stages of the code you'd like to debug. The execution of the program will stop at each breakpoint so that you can examine its current state. Breakpoints are represented as big red dots in the left-hand gutter of the PyCharm editor.
Find the HTML file that contains the JS script you'd like to debug in the Project panel (the project directory tree, typically on the left-hand side of the window).
Right-click on the file, and choose Debug 'sample.html', as illustrated here:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25284)
Hello! Python by Anthony Briggs(24338)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23430)
Kotlin in Action by Dmitry Jemerov(22508)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21971)
Dependency Injection in .NET by Mark Seemann(21842)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20709)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19522)
Grails in Action by Glen Smith Peter Ledbrook(18605)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17032)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15843)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13690)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11853)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11151)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10621)
Hit Refresh by Satya Nadella(9197)
The Kubernetes Operator Framework Book by Michael Dame(8570)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8400)
Robo-Advisor with Python by Aki Ranin(8360)